﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="StudentAbsentReasons.aspx.cs" Inherits="SARS.Tutor.StudentAbsentReasons" %>
<%@ Register TagPrefix="uc" TagName="ProgramCourse" Src="~/UserControl/UcProgramCourse.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1 id="lblHeading" class="heading1Title">
        <b>STUDENT ABSENCE REASON STORE</b></h1>
    <uc:ProgramCourse ID="ucProgramCourse" runat="server" IsManual="False"
                      OnSelectedCourseChanged="ucProgramCourse_OnSelectedCourseChanged" 
                      OnSelectedProgramChanged="ucProgramCourse_OnSelectedProgramChanged"/>
    <asp:UpdatePanel ID="GroupPanel" runat="server">
        <ContentTemplate>
            <div>
                <asp:Label runat="server" ID="lblInform"></asp:Label>
                <br/>
                <asp:GridView ID="gvAttendanceAbsence" runat="server" AllowPaging="True" 
                              AutoGenerateColumns="False" CellPadding="4" DataKeyNames="AttendanceSessionId" 
                              EmptyDataText="There is no student nofity absence in this Course, please select other courses." 
                              ForeColor="#333333" GridLines="None" ItemType="GroupEntity" Width="680px">
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    <Columns>
                        <asp:BoundField DataField="AttendanceSessionId" HeaderStyle-Width="50px" 
                                        HeaderText="ID">
                            <HeaderStyle HorizontalAlign="Left" Width="30px" />
                            <ItemStyle HorizontalAlign="Left" Width="30px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="AttendanceSession.Session.SessionTopic" 
                                        HeaderText="Session Topic" />
                        <asp:BoundField DataField="AttendanceSession.Session.StartDate" 
                                        HeaderText="Start Date &amp; Time">
                            <HeaderStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="AttendanceSession.Session.Room.RoomName" 
                                        HeaderText="Room">
                            <HeaderStyle HorizontalAlign="Left" Width="80" />
                        </asp:BoundField>
                        <asp:BoundField DataField="AttendanceSession.Student.FullName" 
                                        HeaderText="Student Name">
                            <HeaderStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Approved" HeaderText="Status">
                            <HeaderStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:LinkButton ID="btnSelect" runat="server" OnClick="btnSelect_OnClick" 
                                                Text="Details" />
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" Width="30" />
                        </asp:TemplateField>
                    </Columns>
                    <EditRowStyle BackColor="#999999" />
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#E9E7E2" />
                    <SortedAscendingHeaderStyle BackColor="#506C8C" />
                    <SortedDescendingCellStyle BackColor="#FFFDF8" />
                    <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                </asp:GridView>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>